<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title th:text="'\u4f60\u597d'">Insert title here</title>

<link rel="stylesheet" href="css/1140.css" th:href="@{/css/1140.css}" type="text/css" media="screen" />
	
<link rel="stylesheet" href="css/normalize.css" th:href="@{/css/normalize.css}"/>
<link rel="stylesheet" href="css/main.css" th:href="@{/css/main.css}"/>
<link rel="stylesheet" href="css/css.css" th:href="@{/css/css.css}"/>
<link rel="stylesheet" href="css/jquery.dataTables_themeroller.css" th:href="@{/css/jquery.dataTables_themeroller.css}"/>
    
<script src="js/vendor/modernizr-2.6.2.min.js" th:src="@{/js/vendor/modernizr-2.6.2.min.js}"></script>
<script src="js/vendor/css3-mediaqueries.js" th:src="@{/js/vendor/css3-mediaqueries.js}"></script>
<script src="http://lib.sinaapp.com/js/jquery/1.9.0/jquery.min.js" th:src="@{http://lib.sinaapp.com/js/jquery/1.9.0/jquery.min.js}"></script>
<script th:inline="javascript">/*<![CDATA[*/
window.jQuery || document.write('<script src="'+ /*[[@{/js/vendor/jquery-1.9.0.min.js}]]*/ 'js/vendor/jquery-1.9.0.min.js'
		+'"><\/script>')
/*]]>*/</script>
<script src="js/vendor/jquery.dataTables.min.js" th:src="@{/js/vendor/jquery.dataTables.min.js}"></script>
<script src="js/plugins.js" th:src="@{/js/plugins.js}"></script>
<script src="js/main.js" th:src="@{/js/main.js}"></script>
<script type="text/javascript" th:inline="javascript">
/*<![CDATA[*/
$(function(){
	//$('#ckeditor').brokerList
});
/*]]>*/
</script>
<style type="text/css">
li{
	list-style: none;
	margin: 10px 0;
}
</style>
</head>
<body>
	<div>
		<form th:action="@{'/admin/settings/autoConfirm/' + ${avs}?'update':'add'}" method="POST">
			<input th:if="${avs}" th:value="${avs.id}" type="hidden" name="id"/>
			<ul>
				<li>
					<label th:text="#{admini.autoconfirm.show.header1}"></label> 
					<select name="brokerName">
						<option th:each="broker : ${brokerList}" th:text="${broker.name}" th:value="${broker.name}" th:selected="${avs}?(${avs.brokerName == broker.name}?'selected')"></option>
					</select>
				</li>
				<li>
					<label th:text="#{admini.autoconfirm.show.header2}"></label> 
					<input name="loginUrl" th:value="${avs}?${avs.loginUrl}"/>
				</li>
				<li>
					<label th:text="#{admini.autoconfirm.show.header3}"></label> 
					<input name="loginData" th:value="${avs}?${avs.loginData}" />
				</li>
				<li>
					<label th:text="#{admini.autoconfirm.show.header4}"></label> 
					<input name="sessionIdKey" th:value="${avs}?${avs.sessionIdKey}" />
				</li>
				<li>
					<label th:text="#{admini.autoconfirm.show.header5}"></label> 
					<input name="accountsUrl" th:value="${avs}?${avs.accountsUrl}" />
				</li>
				<li>
					<label th:text="#{admini.autoconfirm.show.header6}"></label> 
					<input name="accountsElementsSelector" th:value="${avs}?${avs.accountsElementsSelector}" />
				</li>
			</ul>
			<button type="submit">submit</button>
		</form>
	</div>	
</body>
</html>